package com.yunji.order.dao.impl;

import com.yunji.common.base.BaseDaoImpl;
import com.yunji.order.dao.IRequestDao;
import com.yunji.order.domain.RequestDO;
import com.yunji.order.mapper.IRequestMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author : peter-zhu
 * @date : 2024/12/16 15:29
 * @description : TODO
 **/
@Repository
public class RequestDaoImpl extends BaseDaoImpl<IRequestMapper, RequestDO> implements IRequestDao {
    @Override
    public List<RequestDO> listByCodeType(String tradeCode, Integer tradeType) {
        return lambdaQuery().eq(RequestDO::getTradeCode, tradeCode).eq(RequestDO::getRequestType, tradeType).list();
    }
}
